package com.wtwd.campus.chain;

import com.wtwd.campus.common.RespEntity;
import com.wtwd.campus.service.H5Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author mjy(此处执行绑定设备操作 原始代码保持不变)
 * @date 2022/04/19
 * @description
 */
@Component
public class H5bindDevice extends H5BindDeviceChain {

    @Autowired
    private H5Service h5Service;

    @Override
    protected RespEntity H5BindDevice(Integer h5UserId, String imei, String studentName) {
        System.out.println("执行绑定链路器");
        return h5Service.bindDevice(h5UserId, imei, studentName);
    }

    public H5bindDevice() {
        this.level = H5BindDeviceChain.bindDevice;
    }
}
